﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/manager.master" AutoEventWireup="true"
    CodeBehind="schedule_add.aspx.cs" Inherits="RailwayReservationWeb.manager.schedule_add" %>

<asp:Content ID="Content2" ContentPlaceHolderID="PathContent" runat="server">
    <ol class="breadcrumb">
        <li><a href="default.aspx">Home</a></li>
        <li><a href="schedule_list.aspx">Schedule</a></li>
        <li class="active"><a href="schedule_add.aspx">Create</a></li>
    </ol>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page-header">
        <h1>
            Add Schedule</h1>
    </div>
    <p id="pMessage" runat="server" class="alert alert-danger">
    </p>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="alert alert-danger"
        DisplayMode="List" />
    <div class="form-horizontal">
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label6" runat="server" Text="Train Name" AssociatedControlID="cboTrain"
                    CssClass="control-label"></asp:Label>
            </div>
            <div class="col-md-9">
                <asp:DropDownList ID="cboTrain" runat="server" CssClass="form-control">
                </asp:DropDownList>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label4" runat="server" Text="Origin" AssociatedControlID="cboOrigin"
                    CssClass="control-label"></asp:Label>
            </div>
            <div class="col-md-9">
                <asp:DropDownList ID="cboOrigin" runat="server" CssClass="form-control">
                </asp:DropDownList>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label5" runat="server" Text="Destination" AssociatedControlID="cboDestination"
                    CssClass="control-label"></asp:Label>
            </div>
            <div class="col-md-9">
                <asp:DropDownList ID="cboDestination" runat="server" CssClass="form-control">
                </asp:DropDownList>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label2" runat="server" Text="Dep Time" AssociatedControlID="txtDepTime"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please input Dep Time"
                    ForeColor="Red" ControlToValidate="txtDepTime">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtDepTime" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label3" runat="server" Text="Arr Time" AssociatedControlID="txtArrTime"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please input Arr Time"
                    ForeColor="Red" ControlToValidate="txtArrTime">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtArrTime" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label1" runat="server" Text="Travel Time" AssociatedControlID="txtTravelTime"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please input TravelTime"
                    ForeColor="Red" ControlToValidate="txtTravelTime">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtTravelTime" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label7" runat="server" Text="Run Days" AssociatedControlID="txtArrTime"
                    CssClass="control-label"></asp:Label>
            </div>
            <div class="col-md-9">
                <div  class="checkbox">
                <asp:CheckBoxList ID="chlRunDays" runat="server" RepeatLayout="UnorderedList">
                    <asp:ListItem>Monday</asp:ListItem>
                    <asp:ListItem>Tuesday</asp:ListItem>
                    <asp:ListItem>Wednesday</asp:ListItem>
                    <asp:ListItem>Thursday</asp:ListItem>
                    <asp:ListItem>Friday</asp:ListItem>
                    <asp:ListItem>Saturday</asp:ListItem>
                    <asp:ListItem>Sunday</asp:ListItem>
                </asp:CheckBoxList></div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label8" runat="server" Text="Distance" AssociatedControlID="txtDistance"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please input Distance"
                    ForeColor="Red" ControlToValidate="txtDistance">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtDistance" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-3 col-md-9">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    CssClass="btn btn-primary" onclick="btnSubmit_Click" />
                &nbsp;<asp:Button ID="Button1" runat="server" Text="Cancel" CausesValidation="False"
                    PostBackUrl="~/manager/schedule_list.aspx" CssClass="btn btn-default" UseSubmitBehavior="False" />
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SideContent" runat="server">
    <div class="panel panel-primary panel-navi">
        <!-- Default panel contents -->
        <div class="panel-heading">
            Manage Schedule</div>
        <!-- List group -->
        <ul class="list-group">
            <li class="list-group-item"><a href="schedule_list.aspx">View Schedule List</a></li>
            <li class="list-group-item"><a href="schedule_add.aspx">Add New Schedule</a></li>
        </ul>
    </div>
</asp:Content>
